.search-results .result {
    margin-left: 0;
    margin-right: 0;
}

.dir-rtl .search-results .result {
    margin-right: 15px;
    margin-left: 0;
}

.search-results .result .result-content {
    margin: 7px 0;
}

.search-results .result .filename {
    font-style: italic;
}

.search-input-wrapper {
    margin: 0 5px 0 2px;
    overflow: hidden;
    float: right;
    height: 100%;
    width: 16px;
    transition: width 0.5s ease, left 0.5s ease;
}

.search-input-wrapper > div {
    float: left;
    margin: 10px 0 9px 0;
}

.dir-rtl .search-input-wrapper {
    margin: 0 2px 0 5px;
    float: left;
}

.dir-rtl .search-input-wrapper > div {
    float: right;
}

.dir-rtl .search-input-wrapper > form {
    margin: 5px 25px 5px 0;
}

.search-input-wrapper > form {
    opacity: 0;
    margin: 5px 0 5px 25px;
    transition: opacity 0.5s ease-in-out;
}

.search-input-wrapper > form > input {
    margin: 0;
}

.search-input-wrapper form.expanded {
    opacity: 1;
}

.search-input-wrapper.expanded {
    width: 160px;
}

// When it is displayed in the navbar we want it aligned with .usermenu .
.dir-rtl .navbar .search-input-wrapper > form {
    margin: 7px 25px 3px 0;
}

.navbar .search-input-wrapper > form {
    margin: 7px 0 3px 25px;
}
